<!DOCTYPE html>

<html>

<head>

    <title>{$site_name}-二维码下载-码溜挪车</title>

    <meta name="keywords" content="{$site_seo_keywords}" />

    <meta name="description" content="{$site_seo_description}">


    <tc_include file="Public:head" />

</head>

<body class="body-white" id="top">
<tc_include file="Public:nav" />
<div class="container tc-main">
    <div class="row">
        <div class="span2">
            <tc_include file="Public:usernav"/>
        </div>
        <div class="span10">

            <div class="tab-content">

                <div class="tab-pane active" id="one">

                    <form id="ff" class="form-horizontal js-forgot-form" action="{:leuu('Nuoche/center/down_code')}" method="post">

                        <div class="control-group" style="margin-top: 50px;">

                            <label class="control-label" for="field1">二维码</label>

                            <div class="controls">

                                <input type="number" name="start" id="start" class="span2">&nbsp;-&nbsp;<input type="number" id="end" name="end" class="span2">

                               <br/><br/><span class="text-error" >当前可下载的最大值为{$maxid}</span>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for=""></label>
                            <div class="controls">
                                <button class="btn btn-primary js-ajax-submit span4" type="button" style="margin-left: 0px" id="subbtn">点击下载</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>

    </div>

    <tc_include file="Public:footer" />

</div>

<!-- /container -->

<tc_include file="Public:scripts" />

<script type="text/javascript">

    $('#subbtn').click(function(){
        var start = $('#start').val();
        var end = $('#end').val();

        var http = window.location.protocol;
        var host = window.location.host;
        var  url =  http+'//'+host+'/index.php?g=nuoche&m=center&a=export&start='+start+'&end='+end;
		document.getElementById('subbtn').disabled=true;
        window.open(url);
        document.getElementById('subbtn').disabled=false;
		
        


    });

</script>

</body>

</html>